﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

using Furion.DataValidation;

namespace Abc.Utils;

/// <summary>
/// Abc 定义的验证类型
/// </summary>
[ValidationType]
public enum AbcValidationTypes
{
    /// <summary>
    /// 日期类型
    /// </summary>
    [ValidationItemMetadata(@"^(?:(?!0000)[0-9]{4}([-/.]?)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]?)0?2\2(?:29))$", "The Value is not a date type.")]
    Date2,

    /// <summary>
    /// 日期时间类型
    /// </summary>
    [ValidationItemMetadata(@"^(?:(?!0000)[0-9]{4}([-/.]?)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]?)0?2\2(?:29))\s+([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$", "The Value is not a dateTime type.")]
    DateTime,

    /// <summary>
    /// IPV4
    /// </summary>
    [ValidationItemMetadata(@"^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$", "The Value is not a ipv4 type.")]
    IPV4,

    /// <summary>
    /// IPV4-IPV4
    /// </summary>
    [ValidationItemMetadata(@"^((((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))-(((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)))$", "The Value is not a ipv4 type.")]
    IPV4ToIPV4,

    /// <summary>
    /// IPV6
    /// </summary>
    [ValidationItemMetadata(@"^([\da-fA-F]{1,4}:){6}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^::([\da-fA-F]{1,4}:){0,4}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:):([\da-fA-F]{1,4}:){0,3}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){2}:([\da-fA-F]{1,4}:){0,2}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){3}:([\da-fA-F]{1,4}:){0,1}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){4}:((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4}$|^:((:[\da-fA-F]{1,4}){1,6}|:)$|^[\da-fA-F]{1,4}:((:[\da-fA-F]{1,4}){1,5}|:)$|^([\da-fA-F]{1,4}:){2}((:[\da-fA-F]{1,4}){1,4}|:)$|^([\da-fA-F]{1,4}:){3}((:[\da-fA-F]{1,4}){1,3}|:)$|^([\da-fA-F]{1,4}:){4}((:[\da-fA-F]{1,4}){1,2}|:)$|^([\da-fA-F]{1,4}:){5}:([\da-fA-F]{1,4})?$|^([\da-fA-F]{1,4}:){6}:$", "The Value is not a ipv6 type.")]
    IPV6,

    /// <summary>
    /// IPV6-IPV6
    /// </summary>
    [ValidationItemMetadata(@"^(((([\da-fA-F]{1,4}:){6}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(::([\da-fA-F]{1,4}:){0,4}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:):([\da-fA-F]{1,4}:){0,3}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){2}:([\da-fA-F]{1,4}:){0,2}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){3}:([\da-fA-F]{1,4}:){0,1}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){4}:((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4})|(:((:[\da-fA-F]{1,4}){1,6}|:))|([\da-fA-F]{1,4}:((:[\da-fA-F]{1,4}){1,5}|:))|(([\da-fA-F]{1,4}:){2}((:[\da-fA-F]{1,4}){1,4}|:))|(([\da-fA-F]{1,4}:){3}((:[\da-fA-F]{1,4}){1,3}|:))|(([\da-fA-F]{1,4}:){4}((:[\da-fA-F]{1,4}){1,2}|:))|(([\da-fA-F]{1,4}:){5}:([\da-fA-F]{1,4})?)|(([\da-fA-F]{1,4}:){6}:))-((([\da-fA-F]{1,4}:){6}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(::([\da-fA-F]{1,4}:){0,4}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:):([\da-fA-F]{1,4}:){0,3}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){2}:([\da-fA-F]{1,4}:){0,2}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){3}:([\da-fA-F]{1,4}:){0,1}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){4}:((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4})|(:((:[\da-fA-F]{1,4}){1,6}|:))|([\da-fA-F]{1,4}:((:[\da-fA-F]{1,4}){1,5}|:))|(([\da-fA-F]{1,4}:){2}((:[\da-fA-F]{1,4}){1,4}|:))|(([\da-fA-F]{1,4}:){3}((:[\da-fA-F]{1,4}){1,3}|:))|(([\da-fA-F]{1,4}:){4}((:[\da-fA-F]{1,4}){1,2}|:))|(([\da-fA-F]{1,4}:){5}:([\da-fA-F]{1,4})?)|(([\da-fA-F]{1,4}:){6}:)))$", "The Value is not a ipv6 type.")]
    IPV6ToIPV6,

    /// <summary>
    /// IPV4/IPV6
    /// </summary>
    [ValidationItemMetadata(@"^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){6}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^::([\da-fA-F]{1,4}:){0,4}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:):([\da-fA-F]{1,4}:){0,3}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){2}:([\da-fA-F]{1,4}:){0,2}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){3}:([\da-fA-F]{1,4}:){0,1}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){4}:((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$|^([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4}$|^:((:[\da-fA-F]{1,4}){1,6}|:)$|^[\da-fA-F]{1,4}:((:[\da-fA-F]{1,4}){1,5}|:)$|^([\da-fA-F]{1,4}:){2}((:[\da-fA-F]{1,4}){1,4}|:)$|^([\da-fA-F]{1,4}:){3}((:[\da-fA-F]{1,4}){1,3}|:)$|^([\da-fA-F]{1,4}:){4}((:[\da-fA-F]{1,4}){1,2}|:)$|^([\da-fA-F]{1,4}:){5}:([\da-fA-F]{1,4})?$|^([\da-fA-F]{1,4}:){6}:$", "The Value is not a ipv4 or ipv6 type.")]
    IPV4OrV6,

    /// <summary>
    /// IPV4-IPV4 /IPV6-IPV6
    /// </summary>
    [ValidationItemMetadata(@"^(((((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))-(((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)))|(((([\da-fA-F]{1,4}:){6}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(::([\da-fA-F]{1,4}:){0,4}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:):([\da-fA-F]{1,4}:){0,3}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){2}:([\da-fA-F]{1,4}:){0,2}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){3}:([\da-fA-F]{1,4}:){0,1}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){4}:((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4})|(:((:[\da-fA-F]{1,4}){1,6}|:))|([\da-fA-F]{1,4}:((:[\da-fA-F]{1,4}){1,5}|:))|(([\da-fA-F]{1,4}:){2}((:[\da-fA-F]{1,4}){1,4}|:))|(([\da-fA-F]{1,4}:){3}((:[\da-fA-F]{1,4}){1,3}|:))|(([\da-fA-F]{1,4}:){4}((:[\da-fA-F]{1,4}){1,2}|:))|(([\da-fA-F]{1,4}:){5}:([\da-fA-F]{1,4})?)|(([\da-fA-F]{1,4}:){6}:))-((([\da-fA-F]{1,4}:){6}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(::([\da-fA-F]{1,4}:){0,4}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:):([\da-fA-F]{1,4}:){0,3}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){2}:([\da-fA-F]{1,4}:){0,2}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){3}:([\da-fA-F]{1,4}:){0,1}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){4}:((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4})|(:((:[\da-fA-F]{1,4}){1,6}|:))|([\da-fA-F]{1,4}:((:[\da-fA-F]{1,4}){1,5}|:))|(([\da-fA-F]{1,4}:){2}((:[\da-fA-F]{1,4}){1,4}|:))|(([\da-fA-F]{1,4}:){3}((:[\da-fA-F]{1,4}){1,3}|:))|(([\da-fA-F]{1,4}:){4}((:[\da-fA-F]{1,4}){1,2}|:))|(([\da-fA-F]{1,4}:){5}:([\da-fA-F]{1,4})?)|(([\da-fA-F]{1,4}:){6}:))))$", "The Value is not a ipv4 or ipv6 type.")]
    IPV4ToIPV4OrIPV6ToIPV6,

    /// <summary>
    /// 多个IPV4或IPV6 \n 换行
    /// </summary>
    [ValidationItemMetadata(@"^(((((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){6}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(::([\da-fA-F]{1,4}:){0,4}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:):([\da-fA-F]{1,4}:){0,3}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){2}:([\da-fA-F]{1,4}:){0,2}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){3}:([\da-fA-F]{1,4}:){0,1}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){4}:((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4})|(:((:[\da-fA-F]{1,4}){1,6}|:))|([\da-fA-F]{1,4}:((:[\da-fA-F]{1,4}){1,5}|:))|(([\da-fA-F]{1,4}:){2}((:[\da-fA-F]{1,4}){1,4}|:))|(([\da-fA-F]{1,4}:){3}((:[\da-fA-F]{1,4}){1,3}|:))|(([\da-fA-F]{1,4}:){4}((:[\da-fA-F]{1,4}){1,2}|:))|(([\da-fA-F]{1,4}:){5}:([\da-fA-F]{1,4})?)|(([\da-fA-F]{1,4}:){6}:))[\n])*((((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){6}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(::([\da-fA-F]{1,4}:){0,4}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:):([\da-fA-F]{1,4}:){0,3}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){2}:([\da-fA-F]{1,4}:){0,2}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){3}:([\da-fA-F]{1,4}:){0,1}((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){4}:((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?))|(([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4})|(:((:[\da-fA-F]{1,4}){1,6}|:))|([\da-fA-F]{1,4}:((:[\da-fA-F]{1,4}){1,5}|:))|(([\da-fA-F]{1,4}:){2}((:[\da-fA-F]{1,4}){1,4}|:))|(([\da-fA-F]{1,4}:){3}((:[\da-fA-F]{1,4}){1,3}|:))|(([\da-fA-F]{1,4}:){4}((:[\da-fA-F]{1,4}){1,2}|:))|(([\da-fA-F]{1,4}:){5}:([\da-fA-F]{1,4})?)|(([\da-fA-F]{1,4}:){6}:))$", "The Value is not a ipv4 type.")]
    IPV4OrIPV6s,

    /// <summary>
    /// 必须带端口号的网址(或ip)
    /// </summary>
    [ValidationItemMetadata(@"^((ht|f)tps?:\/\/)?[\w-]+(\.[\w-]+)+:\d{1,5}\/?$", "This value is not a URL (or IP) plus a port number")]
    IpUrlPort,

    ///// <summary>
    ///// 统一社会信用代码
    ///// </summary>
    //[ValidationItemMetadata(@"^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$", "This value is not a Unified Social Credit Identifier")]
    //SocialCreditCode,

    /// <summary>
    /// 统一社会信用代码(宽松匹配)
    /// </summary>
    [ValidationItemMetadata(@"^(([0-9A-Za-z]{15})|([0-9A-Za-z]{18})|([0-9A-Za-z]{20}))$", "This value is not a Unified Social Credit Identifier")]
    SocialCreditCodeSimple,


    /// <summary>
    /// 迅雷链接
    /// 例如：thunder://xxxxxxxxxxxxxxxxxxxxxxxxxxxx
    /// </summary>
    [ValidationItemMetadata(@"^thunderx?:\/\/[a-zA-Z\d]+=$", "This value is not a thunder link")]
    Thunder,

    /// <summary>
    /// ed2k连接(宽松匹配)
    /// 例如：ed2k://|file|xxxxxxxxxxxxxxxxxxxxxx
    /// </summary>
    [ValidationItemMetadata(@"^ed2k:\/\/\|file\|.+\|\/$", "This value is not a ed2k link")]
    Ed2k,

    /// <summary>
    /// 磁力链接(宽松匹配)
    /// 例如：magnet://xt=urn:btih:xxxxxxxxxxxxxxxxxxxxxxxxxxx
    /// </summary>
    [ValidationItemMetadata(@"^magnet:\?xt=urn:btih:[0-9a-fA-F]{40,}.*$", "This value is not a magnet link")]
    Magnet,

    /// <summary>
    /// 子网掩码(不包含 0.0.0.0)
    /// 例如：255.255.255.0,255.255.255.255,255.240.0.0
    /// </summary>
    [ValidationItemMetadata(@"^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(255|254|252|248|240|224|192|128|0)$", "This value is not a subnet mask")]
    SubnetMask,

    /// <summary>
    /// linux"隐藏文件"路径
    /// 例如：/usr/ad/.dd,/root/.gitignore,/.gitignore
    /// </summary>
    [ValidationItemMetadata(@"^\/(?:[^/]+\/)*\.[^/]*", "This value is not a Linux 'hidden file' path")]
    LinuxHideFilePath,

    /// <summary>
    /// linux文件夹路径
    /// 例如：/usr/ad/dd/,/,/root/,/aa/a/aa/
    /// </summary>
    [ValidationItemMetadata(@"Linux folder path", "This value is not a  Linux folder path")]
    LinuxFolderPath,

    /// <summary>
    /// linux文件路径
    /// 例如：/root/b.ts,/root/abc
    /// </summary>
    [ValidationItemMetadata(@"^\/(?:[^/]+\/)*[^/]+$", "This value is not a Linux file path")]
    LinuxFilePath,

    /// <summary>
    /// window"文件夹"路径
    /// 例如：c:\Users\Administrator\Desktop ,E:\m\
    /// </summary>
    [ValidationItemMetadata(@"^[a-zA-Z]:\\(?:\w+\\?)*$", "This value is not a windows folder path")]
    WindowsFolderPath,

    /// <summary>
    /// window下"文件"路径
    /// 例如：c:\Users\Administrator\Desktop\qq.link ,E:\m\vscode.exe
    /// </summary>
    [ValidationItemMetadata(@"^[a-zA-Z]:\\(?:\w+\\)*\w+\.\w+$", "This value is not a windows file path")]
    WindowsFilePath,

    /// <summary>
    /// html注释
    /// 例如：<!--<div>abc21231</div>-->
    /// </summary>
    [ValidationItemMetadata(@"<!--[\s\S]*?-->", "This value is not a html note")]
    HtmlNote,


    ///// <summary>
    ///// md5格式(32位)
    ///// 例如: 21fe181c5bfc16306a6828c1f7b762e8
    ///// </summary>
    //[ValidationItemMetadata(@"^[a-fA-F0-9]{32}$", "This value is not a md5 format")]
    //MD5,

    /// <summary>
    /// GUID/UUID
    /// 例如: e155518c-ca1b-443c-9be9-fe90fdab7345, 41E3DAF5-6E37-4BCC-9F8E-0D9521E2AA8D, 00000000-0000-0000-0000-000000000000
    /// </summary>
    [ValidationItemMetadata(@"^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$", "This value is not a guid/uuid")]
    GUID,

    /// <summary>
    /// 版本号(version)格式必须为X.Y.Z
    /// 例如: 16.3.10
    /// </summary>
    [ValidationItemMetadata(@"^\d+(?:\.\d+){2}$", "This value is not a version")]
    Version,

    /// <summary>
    /// 视频(video)链接地址
    /// 例如: http://www.abc.com/video/wc.avi
    /// </summary>
    [ValidationItemMetadata(@"^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$", "This value is not a video url")]
    VideoUrl,

    /// <summary>
    /// 图片(image)链接地址
    /// 例如: https://www.abc.com/logo.png, http://www.abc.com/logo.png
    /// </summary>
    [ValidationItemMetadata(@"^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$", "This value is not a image url")]
    ImageUrl,

    /// <summary>
    /// 24小时制时间（HH:mm:ss）
    /// 例如: 23:34:55
    /// </summary>
    [ValidationItemMetadata(@"^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d$", "This value is not a 24-hour time")]
    Hour24,

    /// <summary>
    /// 12小时制时间（hh:mm:ss）
    /// 例如: 11:34:55 , 反例: 23:34:55
    /// </summary>
    [ValidationItemMetadata(@"^(?:1[0-2]|0?[1-9]):[0-5]\d:[0-5]\d$", "This value is not a 12-hour time")]
    Hour12,

    ///// <summary>
    ///// base64格式
    ///// 例如: 
    ///// </summary>
    //[ValidationItemMetadata(@"^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$", "This value is not a base64")]
    //Base64,

    /// <summary>
    /// 数字/货币金额（支持负数、千分位分隔符）
    /// 例如: 100, -0.99, 3, 234.32, -1, 900, 235.09, 12,345,678.90
    /// </summary>
    [ValidationItemMetadata(@"^-?\d+(,\d{3})*(\.\d{1,2})?$", "This value is not a money")]
    Money2,

    /// <summary>
    /// 数字/货币金额 (只支持正数、不支持校验千分位分隔符)
    /// 例如: 0.99, 8.99, 666
    /// </summary>
    [ValidationItemMetadata(@"(?:^[1-9]([0-9]+)?(?:\.[0-9]{1,2})?$)|(?:^(?:0)$)|(?:^[0-9]\.[0-9](?:[0-9])?$)", "This value is not a money")]
    Money_PositiveNumber,


    /// <summary>
    /// 银行卡号（10到30位, 覆盖对公/私账户, 参考[微信支付](https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=22_1)）
    /// 例如: 6234567890, 6222026006705354000
    /// </summary>
    [ValidationItemMetadata(@"^[1-9]\d{9,29}$", "This value is not a bank card no")]
    BankCardNo,

    /// <summary>
    /// 中文姓名
    /// 例如: 葛二蛋, 凯文·杜兰特, 德克·维尔纳·诺维茨基
    /// </summary>
    [ValidationItemMetadata(@"^(?:[\u4e00-\u9fa5·]{2,16})$", "This value is not a Chinese name")]
    ChineseName2,
    /// <summary>
    /// 英文姓名
    /// 例如: James, Kevin Wayne Durant, Dirk Nowitzki
    /// </summary>
    [ValidationItemMetadata(@"(^[a-zA-Z][a-zA-Z\s]{0,20}[a-zA-Z]$)", "This value is not a English name")]
    EnglishName2,

    /// <summary>
    /// 车牌号(新能源)
    /// 例如: 京AD92035, 甘G23459F, 京AA92035
    /// </summary>
    [ValidationItemMetadata(@"^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z](?:((\d{5}[A-HJK])|([A-HJK][A-HJ-NP-Z0-9][0-9]{4}))|[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳])$", "This value is not a car number")]
    CarNumber_NewEnergy,


    /// <summary>
    /// 车牌号(非新能源)
    /// 例如: 京A00599, 黑D23908
    /// </summary>
    [ValidationItemMetadata(@"^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$", "This value is not a car number")]
    CarNumber_NonNewEnergy,

    /// <summary>
    /// 车牌号(新能源+非新能源)
    /// </summary>
    [ValidationItemMetadata(@"^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$", "This value is not a car number")]
    CarNumber,

    /// <summary>
    /// 手机号(mobile phone)中国(严谨), 根据工信部2019年最新公布的手机号段
    /// 例如: 008618311006933, +8617888829981, 19119255642
    /// </summary>
    [ValidationItemMetadata(@"^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$", "This value is not a mobile phone")]
    MobilePhone_Rigorous,

    /// <summary>
    /// 手机号(mobile phone)中国(宽松), 只要是13,14,15,16,17,18,19开头即可
    /// 例如: 008618311006933, +8617888829981, 19119255642
    /// </summary>
    [ValidationItemMetadata(@"^(?:(?:\+|00)86)?1[3-9]\d{9}$", "This value is not a mobile phone")]
    MobilePhone_Relax,

    /// <summary>
    /// 手机号(mobile phone)中国(最宽松), 只要是1开头即可, 如果你的手机号是用来接收短信, 优先建议选择这一条
    /// 例如: 008618311006933, +8617888829981, 19119255642
    /// </summary>
    [ValidationItemMetadata(@"^(?:(?:\+|00)86)?1\d{10}$", "This value is not a mobile phone")]
    MobilePhone_Simple,

    /// <summary>
    /// 日期(严谨, 支持闰年判断)
    /// 例如: 1990-12-12, 2000-02-29 , 反例: 2021-02-29
    /// </summary>
    [ValidationItemMetadata(@"^(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)$", "This value is not a date")]
    Date_LeapYear,

    /// <summary>
    /// 中国省份
    /// 例如: 浙江, 台湾 , 反例: 哈尔滨
    /// </summary>
    [ValidationItemMetadata(@"^浙江|上海|北京|天津|重庆|黑龙江|吉林|辽宁|内蒙古|河北|新疆|甘肃|青海|陕西|宁夏|河南|山东|山西|安徽|湖北|湖南|江苏|四川|贵州|云南|广西|西藏|江西|广东|福建|台湾|海南|香港|澳门$", "This value is not a province")]
    Province,

    /// <summary>
    /// 可以被moment转化成功的时间 YYYYMMDD HH:mm:ss
    /// 例如: 2020/01/01 23:59:59, 2020-01-01 00:00:00, 20200101 11:11:11 , 反例: 2020/00/01 23:59:59, 2020-01/01 23:59:59, 2020-01-01 23:59:61, 2020-01-0100:00:00
    /// </summary>
    [ValidationItemMetadata(@"^\d{4}([/:-\S])(1[0-2]|0?[1-9])\1(0?[1-9]|[1-2]\d|30|31) (?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d$", "This value is not a datetime")]
    DateTime2,

    /// <summary>
    /// email(邮箱)
    /// 例如: 90203918@qq.com, nbilly@126.com, 汉字@qq.com
    /// </summary>
    [ValidationItemMetadata(@"^(([^<>()[\]\\.,;:\s@""]+(\.[^<>()[\]\\.,;:\s@""]+)*)|("".+""))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$", "This value is not a email")]
    Email,

    /// <summary>
    /// 座机(tel phone)电话(国内),如: 0341-86091234
    /// 例如: 0936-4211235, 89076543, 010-12345678-1234
    /// </summary>
    [ValidationItemMetadata(@"^(?:(?:\d{3}-)?\d{8}|^(?:\d{4}-)?\d{7,8})(?:-\d+)?$", "This value is not a tel")]
    Tel,

    /// <summary>
    /// 身份证号(1代,15位数字)
    /// 例如: 123456991010193
    /// </summary>
    [ValidationItemMetadata(@"^[1-9]\d{7}(?:0\d|10|11|12)(?:0[1-9]|[1-2][\d]|30|31)\d{3}$", "This value is not a ID No")]
    IDNo_1,

    /// <summary>
    /// 身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
    /// 例如: 12345619991205131x
    /// </summary>
    [ValidationItemMetadata(@"^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\d|30|31)\d{3}[\dXx]$", "This value is not a ID No")]
    IDNo_2,

    /// <summary>
    /// 身份证号, 支持1/2代(15位/18位数字)
    /// </summary>
    [ValidationItemMetadata(@"^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$", "This value is not a ")]
    IDNo,

    /// <summary>
    /// 护照（包含香港、澳门）
    /// 例如: s28233515, 141234567, 159203084, MA1234567, K25345719
    /// </summary>
    [ValidationItemMetadata(@"(^[EeKkGgDdSsPpHh]\d{8}$)|(^(([Ee][a-fA-F])|([DdSsPp][Ee])|([Kk][Jj])|([Mm][Aa])|(1[45]))\d{7}$)", "This value is not a passport")]
    Passport,

    /// <summary>
    /// 帐号是否合法(允许字母数字下划线组合，长度4-15字符)
    /// 例如: justin, justin1989, justin_666
    /// </summary>
    [ValidationItemMetadata(@"^\w{4,15}$", "This value can only be alphanumeric underline")]
    Account,

    ///// <summary>
    ///// 密码(~!@#$%^&*()_+-=\、`a-zA-Z.)
    ///// </summary>
    //[ValidationItemMetadata(@"[]", "This value is not a ")]
    //PassWord,


    /// <summary>
    /// 中文/汉字
    /// 例如: 正则, 前端
    /// </summary>
    [ValidationItemMetadata(@"^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$", "This value is not a chinese")]
    Chinese2,

    ///// <summary>
    ///// 
    ///// </summary>
    //[ValidationItemMetadata(@"", "This value is not a ")]
    //Test,
}